package com.plugin;

/**
 * 插件信息类，存储插件的元数据
 */
public class PluginInfo {
    private final String id;
    private final String name;
    private final String version;
    private final String description;
    private final String downloadUrl;
    
    public PluginInfo(String id, String name, String version, String description, String downloadUrl) {
        this.id = id;
        this.name = name;
        this.version = version;
        this.description = description;
        this.downloadUrl = downloadUrl;
    }
    
    public String getId() { return id; }
    public String getName() { return name; }
    public String getVersion() { return version; }
    public String getDescription() { return description; }
    public String getDownloadUrl() { return downloadUrl; }
    
    @Override
    public String toString() {
        return name + " (" + version + ")";
    }
}
